#ifndef __FIRE_GESTURE_BEHAVIOUR_H__
#define __FIRE_GESTURE_BEHAVIOUR_H__



#include "../Global.h"

class FireGestureBehaviour : public LBehaviour
{
public:
	FireGestureBehaviour( );
	virtual ~FireGestureBehaviour( );

	virtual bool		init					( );
	virtual void		update					( float dt );

	//Touch
	virtual bool ccTouchBegan(CCTouch *pTouch, CCEvent *pEvent) ;
    virtual void ccTouchEnded(CCTouch *pTouch, CCEvent *pEvent) ;
    virtual void ccTouchCancelled(CCTouch *pTouch, CCEvent *pEvent) ;

private:
	CCArray*		m_pTouches;
	CCPoint			m_tStartTouchPosition;
	CCPoint			m_tFireDirection;
	float			m_fTouchDistance;
	float			m_fMinTouchDistance;
	float			m_fMaxTouchDuration;
};



#endif